package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.service.AuthServiceRpc;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/5 15:24
 * @Modified By:
 */
@Component
public class AuthServieFallback implements AuthServiceRpc {

    @Override
    public Result auth(String token) {
        return null;
    }

    @Override
    public Result<Map<String, Object>> checkToken(String token) {

        return ResultUtil.error("认证服务暂时不可用");
    }


}
